<template>
	<view>
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" active-color='#f7c60a'></u-tabs>
		<page0 v-if="current===0"></page0>
		<page1 v-if="current===1"></page1>
		<page2 v-if="current===2"></page2>
		<page3 v-if="current===3"></page3>
	</view>
</template>

<script>
	import page0 from './page0/index.vue'
	import page1 from './page1/index.vue'
	import page2 from './page2/index.vue'
	import page3 from './page3/index.vue'

	export default {
		name: 'EditOrder',
		components: {
			page0,
			page1,
			page2,
			page3
		},
		data() {
			return {
				list: [{
					name: '编辑'
				}, {
					name: '审核中'
				}, {
					name: '已通过'
				}, {
					name: '已拒绝'
				}],
				current: 0
			}
		},
		methods: {
			change(index) {
				this.current = index
			}
		}
	}
</script>
